#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication f(argc, argv);
    cout<<"Vvedite a: ";
    int a;
    cin>>a;
    cout<<"Vvedite b: ";
    int b;
    cin>>b;
    cout<<"Srednee arifmeticheskoe: "<<(a+b)/2.0;
    return f.exec();
}
